package c1701;

import java.io.PrintWriter;
import java.util.Scanner;

public class C{
    public static void main(String[] args) {
        while (cin.hasNext()) {
            String a = cin.next();
            if (isSymetric(a)) {
                cout.println("Y");
            } else {
                cout.println("N");
            }

        }

        cin.close();
        cout.close();
    }

    static boolean isSymetric(String s) {

        return s.equals(new StringBuffer(s).reverse().toString());

    }

    static Scanner cin = new Scanner(System.in);//Alt+Enter
    static PrintWriter cout = new PrintWriter(System.out);
    static PrintWriter cerr = new PrintWriter(System.err, true);

}
